package com.yoda.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author itcast
 * @since 2023-05-15
 */
@TableName("ydd_article")
@ApiModel(value = "YddArticle对象", description = "")
public class YddArticle implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("文章id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("作者的用户名， 用户发布的user-名称")
    private String author;

    @ApiModelProperty("seo关键字")
    private String keywords;

    @ApiModelProperty("seo的 描述")
    private String description;

    @ApiModelProperty("文章内容")
    private String content;

    @ApiModelProperty("缩略图，可多张逗号分隔")
    private String pic;

    @ApiModelProperty("阅读次数")
    private Long click;

    @ApiModelProperty("0表示不推荐1表示推荐")
    private Integer ishot;

    @ApiModelProperty("是否置顶，1是，0否，置顶的文章必须是推荐文章")
    private Integer istop;

    @ApiModelProperty("创建时间")
    private Long createDate;

    @ApiModelProperty("更新时间")
    private Long updateDate;

    @ApiModelProperty("分类ID")
    private Integer cateid;

    @ApiModelProperty("文章的标签，可多个逗号分隔")
    private String tags;

    @ApiModelProperty("文章状态，0待审核，1草稿箱，2已发布，3已删除")
    private Integer status;

    @ApiModelProperty("收藏数量")
    private String lovenum;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("是否为默认数据，null表示不是，1表示是")
    private String defaultData;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Long getClick() {
        return click;
    }

    public void setClick(Long click) {
        this.click = click;
    }

    public Integer getIshot() {
        return ishot;
    }

    public void setIshot(Integer ishot) {
        this.ishot = ishot;
    }

    public Integer getIstop() {
        return istop;
    }

    public void setIstop(Integer istop) {
        this.istop = istop;
    }

    public Long getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Long createDate) {
        this.createDate = createDate;
    }

    public Long getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Long updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getCateid() {
        return cateid;
    }

    public void setCateid(Integer cateid) {
        this.cateid = cateid;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getLovenum() {
        return lovenum;
    }

    public void setLovenum(String lovenum) {
        this.lovenum = lovenum;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getDefaultData() {
        return defaultData;
    }

    public void setDefaultData(String defaultData) {
        this.defaultData = defaultData;
    }

    @Override
    public String toString() {
        return "YddArticle{" +
        "id=" + id +
        ", title=" + title +
        ", author=" + author +
        ", keywords=" + keywords +
        ", description=" + description +
        ", content=" + content +
        ", pic=" + pic +
        ", click=" + click +
        ", ishot=" + ishot +
        ", istop=" + istop +
        ", createDate=" + createDate +
        ", updateDate=" + updateDate +
        ", cateid=" + cateid +
        ", tags=" + tags +
        ", status=" + status +
        ", lovenum=" + lovenum +
        ", userId=" + userId +
        ", defaultData=" + defaultData +
        "}";
    }
}
